package com.jy.modules.cims.data.dao;

import java.util.List;
import java.util.Map;

import com.jy.modules.cims.data.common.dto.TCMmQuotaLoanDetailDTO;
import com.jy.modules.cims.data.dto.QuotaLoanDetailDto;
import com.jy.platform.core.mybatis.MyBatisRepository;

/**
 * @classname: QuotaLoanDetailDao
 * @description: 定义 T_C_MM_QUOTA_LOAN_DETAIL 持久层 接口
 *               通过@MapperScannerConfigurer扫描目录中的所有接口, 动态在Spring Context中生成实现.
 *               方法名称必须与Mapper.xml中保持一致.
 * @author:
 */
@MyBatisRepository
public interface QuotaLoanDetailDao {

	/**
	 * @author
	 * @description: 分页查询T_C_MM_QUOTA_LOAN_DETAIL
	 * @date 2015-01-14 16:43:14
	 * @param searchParams
	 * @return
	 */
	public List<QuotaLoanDetailDto> searchQuotaLoanDetailByPaging(Map<String, Object> searchParams);

	/**
	 * @author
	 * @description:查询对象T_C_MM_QUOTA_LOAN_DETAIL
	 * @date 2015-01-14 16:43:14
	 * @param searchParams
	 * @return
	 */
	public List<QuotaLoanDetailDto> searchQuotaLoanDetail(Map<String, Object> searchParams);

	/**
	 * @author
	 * @description:查询对象T_C_MM_QUOTA_LOAN_DETAIL
	 * @date 2015-01-14 16:43:14
	 * @param id
	 * @return
	 */
	public QuotaLoanDetailDto findQuotaLoanDetailByPrimaryKey(String id);

	/**
	 * @author
	 * @description: 新增对象T_C_MM_QUOTA_LOAN_DETAIL
	 * @date 2015-01-14 16:43:14
	 * @param paramMap
	 * @return
	 */
	public int insertQuotaLoanDetail(Map<String, Object> paramMap);

	/**
	 * @author
	 * @description: 更新对象T_C_MM_QUOTA_LOAN_DETAIL
	 * @date 2015-01-14 16:43:14
	 * @param paramMap
	 */
	public void updateQuotaLoanDetail(Map<String, Object> paramMap);

	/**
	 * @author
	 * @description: 按主键删除T_C_MM_QUOTA_LOAN_DETAIL
	 * @date 2015-01-14 16:43:14
	 * @param ids
	 * @return
	 */
	public void deleteQuotaLoanDetailByPrimaryKey(Map<String, Object> paramMap);

	/**
	 * @author
	 * @description: 查询不同记录条数
	 * @date 2015-01-14 16:43:14
	 * @param paramMap
	 * @return
	 */
	public int searchQuotaLoanDetailCountByQuotaCode(Map<String, Object> paramMap);

	/**
	 * @author
	 * @description:查询对象T_C_MM_QUOTA_LOAN_DETAIL
	 * @date 2015-01-14 16:43:14
	 * @param searchParams
	 * @return
	 */
	public List<QuotaLoanDetailDto> searchQuotaLoanDetailByQuotaLoan(Map<String, Object> searchParams);

	/**
	 * 根据合作机构编号 合约编号查询 额度申请贷款明细
	 * 
	 * @author
	 * @description:查询对象T_C_MM_QUOTA_LOAN_DETAIL
	 * @date 2015-01-14 16:43:14
	 * @param searchParams
	 * @return
	 */
	public List<TCMmQuotaLoanDetailDTO> getQuotaLoanDetailByPaging(Map<String, Object> searchParams);

	/**
	 * @author
	 * @description: 根据额度申请编号和合同号查询额度申请贷款明细
	 * @date 2015-01-14 16:43:14
	 * @param paramMap
	 * @return
	 */
	public List<TCMmQuotaLoanDetailDTO> getQuotaLoanDetailByQuotaCodeAndContractNoList(Map<String, Object> paramMap);

	/**
	 * @author shengzhoutao
	 * @description: 更新对象T_C_MM_QUOTA_LOAN_DETAIL
	 * @param paramMap
	 * @return
	 */
	public int updateQuotaLoanDetailDealStatus(Map<String, Object> paramMap);
}
